﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Objects
{
    [Table("Seat")]
    public class Seat
    {
        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        [InverseProperty("Id")]
        [ForeignKey("FK_BUSI_SEAT")]
        public int BusId { get; set; }

        public decimal Price { get; set; }

        public int Number { get; set; }

        public bool IsFree { get; set; }
    }
}
